﻿using BCCServer.Common.Common;
using BCCServer.DAO.Interfaces;
using BCCServer.IService.IUserService;
using BCCServer.Model.ModelsOut;

namespace BCCServer.Service.UserService
{
    public class User : IUser
    {
        private readonly IuserDB iuserdb;

        public User(IuserDB iuserdb)
        {
            this.iuserdb = iuserdb;
        }

        /// <summary>
        /// 根据账号查询用户信息
        /// </summary>
        /// <param name="Account"></param>
        /// <returns></returns>
        public BCCUserOut selUserInfo(string Account)
        {
            try
            {
                var rs = iuserdb.selUserInfo(Account);
                return rs;
            }
            catch (Exception)
            {
                return null;
            }
        }
    }
}
